<template>
  <div class="side-navigation">
    <ul class="menu-list">
      <li v-for="item in menuItems" :key="item.id">
        <router-link :to="item.path" class="menu-item">
          {{ item.name }}
        </router-link>
      </li>
    </ul>
  </div>
</template>

<script setup>
/* global defineProps */
defineProps({
  menuItems: {
    type: Array,
    required: true
  }
});
</script>

<style scoped>
.side-navigation {
  height: 100%;
  width: 200px;
  background-color: #f5f5f5;
  padding: 20px 0;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}

.menu-item:hover {
  background-color: #e0e0e0;
  color: #42b983;
}

.menu-item.router-link-active {
  background-color: #42b983;
  color: white;
}
</style>